package com.example.dao;

import com.example.model.Coupon;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CouponMapper {
    /**
     */
    long countByExample(Coupon example);

    /**
     */
    int deleteByExample(Coupon example);

    /**
     */
    int deleteByPrimaryKey(Integer id);

    /**
     */
    int insert(Coupon record);

    /**
     */
    int insertSelective(Coupon record);

    /**
     */
    List<Coupon> selectByExample(Coupon example);

    /**
     */
    Coupon selectByPrimaryKey(Integer id);

    /**
     */
    int updateByExampleSelective(@Param("record") Coupon record, @Param("example") Coupon example);

    /**
     */
    int updateByExample(@Param("record") Coupon record, @Param("example") Coupon example);

    /**
     */
    int updateByPrimaryKeySelective(Coupon record);

    /**
     */
    int updateByPrimaryKey(Coupon record);
}